<h1>场馆模型</h1>
<?php echo $this->Html->script('Seat.modelx')?>
<div class="bloc">
	<div class="title">
		<?php $model_id = false?>
		<?php foreach ($modelxs as $modelx):?>
		<?php if(!$model_id){
			$model_id =  $modelx['ModelX']['id'];
		}?>
		<a href = 'javascript:;' onclick='m.x.f.init(<?php echo $modelx['ModelX']['id']?>)'><?php echo $modelx['ModelX']['name']?></a>
		<?php endforeach;?>
		
		<p>
			<?php echo $this->Html->link('添加',array('action'=>'add',$venue_id))?>
        </p>
	</div>
	<div class="content grid_content">
    	<!-- start content -->  
    	<div id = 'modelx_container' style = 'min-height:1000px'>
    	
    	
    	</div>
		<!-- end content -->
	</div>
</div>
<script>
$(function(){
	m.x.f.init(<?php echo $model_id?>);
});
</script>

